package com.hykj.coca.service;

import com.hykj.coca.mapper.AdminMapper;
import com.hykj.coca.model.AdminModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class AdminService extends  BaseService<AdminModel,AdminMapper> {


    @Autowired
    private  AdminMapper adminMapper;

    public AdminModel login(String  adminName,String password) {
        AdminModel adminModel=new AdminModel();
        adminModel.setUserName(adminName);
        adminModel.setPassword(password);
        return adminMapper.login(adminModel);
    }

    public AdminModel nameCheck(HashMap map) {
        return adminMapper.nameCheck(map);
    }
}
